home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / misc / ispell31.lha / ispell-3.1.18src / languages / english / Makefile < prev    next >
Makefile  |  1994-11-02  |  18KB  |  576 lines

  1. #
  2. # $Id: Makefile,v 1.22 1994/08/31 05:58:43 geoff Exp $
  3. #
  4. # Copyright 1993, Geoff Kuenning, Granada Hills, CA
  5. # All rights reserved.
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. #
  11. # 1. Redistributions of source code must retain the above copyright
  12. #    notice, this list of conditions and the following disclaimer.
  13. # 2. Redistributions in binary form must reproduce the above copyright
  14. #    notice, this list of conditions and the following disclaimer in the
  15. #    documentation and/or other materials provided with the distribution.
  16. # 3. All modifications to the source code must be clearly marked as
  17. #    such.  Binary redistributions based on modified source code
  18. #    must be clearly marked as modified versions in the documentation
  19. #    and/or other materials provided with the distribution.
  20. # 4. All advertising materials mentioning features or use of this software
  21. #    must display the following acknowledgment:
  22. #      This product includes software developed by Geoff Kuenning and
  23. #      other unpaid contributors.
  24. # 5. The name of Geoff Kuenning may not be used to endorse or promote
  25. #    products derived from this software without specific prior
  26. #    written permission.
  27. #
  28. # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  29. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  31. # ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  32. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  37. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  38. # SUCH DAMAGE.
  39. #
  40. # This Makefile is an example of how to build dictionaries for a
  41. # complex language with many variants.  It supports both American and
  42. # British English and four dictionary source files, and will build up
  43. # to 8 dictionares from those 4 files by combining them with an
  44. # optional installation-specific file.
  45. #
  46. # If you are building a new Makefile for your own language, this is
  47. # probably not the right place to start.  Instead, you should select
  48. # the "deutsch" Makefile, which is moderately complex, or one of the
  49. # simple Makefiles for another language distributed with ispell.
  50. #
  51. # $Log: Makefile,v $
  52. # Revision 1.22  1994/08/31  05:58:43  geoff
  53. # Create directories before installing into them, and be sure to set the
  54. # proper modes on manual pages.
  55. #
  56. # Revision 1.21  1994/05/25  04:29:30  geoff
  57. # Get rid of all references to DEFHASH and defhash.
  58. #
  59. # Revision 1.20  1994/05/24  04:47:33  geoff
  60. # Work around an RS-6000 shell deficiency in environment setting
  61. #
  62. # Revision 1.19  1994/05/17  06:37:36  geoff
  63. # Fix the remove-on-abort code for the derived dictionaries to be more
  64. # robust.
  65. #
  66. # Revision 1.18  1994/02/23  04:52:30  geoff
  67. # Remove dictionaries being built if make is aborted early.
  68. #
  69. # Revision 1.17  1994/02/22  06:09:06  geoff
  70. # Add SHELLDEBUG.
  71. #
  72. # Revision 1.16  1994/02/13  23:55:20  geoff
  73. # Get rid of the temporary line that zapped "english..4" for people who
  74. # had 3.1.00.
  75. #
  76. # Revision 1.15  1994/02/07  08:01:57  geoff
  77. # Allow multiple variants and extradicts
  78. #
  79. # Revision 1.14  1994/02/07  07:08:10  geoff
  80. # Install english.4 with the right name, removing the wrong one if it exists
  81. #
  82. # Revision 1.13  1994/02/07  06:18:18  geoff
  83. # Add dummy else clauses to shell tests to handle Ultrix problems.  Add an
  84. # eval to all sort commands to make sure that MAKE_SORTTMP is handled
  85. # correctly on all systems.
  86. #
  87. # Revision 1.12  1994/01/25  08:50:34  geoff
  88. # Get rid of all old RCS log lines in preparation for the 3.1 release.
  89. #
  90. #
  91.  
  92. SHELL = /bin/sh
  93. MAKE = make
  94.  
  95. CONFIG        =    ../../config.sh
  96. PATHADDER    =    ../..
  97. BUILDHASH    =    ../../buildhash
  98. UNSQ        =    ../../unsq
  99.  
  100. # The following variables should be set by the superior Makefile,
  101. # based on the LANGUAGES variable in config.X.
  102. #
  103. # There are four progressively-larger English dictionaries distributed
  104. # with ispell.  These are named english.sml, english.med, english.lrg,
  105. # and english.xlg.  For each of these, you can also build a "plus"
  106. # version (english.sml+, etc.)  which is created by combining the
  107. # distributed version with an "extra" dictionary defined by EXTRADICT,
  108. # usually /usr/dict/words.  The "plus" versions of dictionaries
  109. # require lots of time and temporary file space; make sure you have
  110. # set TMPDIR appropriately.
  111. #
  112. # The dictionaries to be built are listed in the MASTERDICTS variable,
  113. # separated by spaces.  The hash files to be built (and installed) are
  114. # listed in the HASHFILES variable.  Hash files are named by taking
  115. # the suffix of the dictionary (e.g., "med+"), and adding ".hash".  As
  116. # a general rule, the dictionaries needed to build the HASHFILES must
  117. # be listed in the MASTERDICTS variable.
  118. #
  119. # British/American variants are supported by the VARIANTS variable.
  120. # You should set VARIANTS to one of "american", "british", or
  121. # "altamer".  The latter is a file of alternate American spellings,
  122. # often British-derived.  I recommend against its use.  I also
  123. # recommend against selecting more than one variant, because it tends
  124. # to cause inconsistent or incorrect spellings to be hidden, although
  125. # there is nothing to prevent such an unwise decision.
  126. #
  127. # If you change AFFIXES for english, you should consider also changing
  128. # DEFLANG (in config.X) to match.
  129. #
  130. MASTERDICTS    =    Use_LANGUAGES_from_config.X
  131. HASHFILES    =    Use_LANGUAGES_from_config.X
  132. VARIANTS    =    Use_LANGUAGES_from_config.X
  133. EXTRADICT    =    Use_LANGUAGES_from_config.X
  134.  
  135. #
  136. # The following variables may be overridden by the superior Makefile,
  137. # based on the LANGUAGES variable in config.X.
  138. #
  139. AFFIXES    =    english.aff
  140.  
  141. #
  142. #    Set this to "-vx" in the make command line if you need to
  143. #    debug the complex shell commands.
  144. #
  145. SHELLDEBUG = +vx
  146.  
  147. all:  $(CONFIG)
  148.     @set $(SHELLDEBUG); \
  149.     if [ ! -r english.0 ]; \
  150.     then \
  151.         $(MAKE) SHELLDEBUG=$(SHELLDEBUG) CBUILD= dictcomponents; \
  152.     else \
  153.         : ; \
  154.     fi
  155.     @set $(SHELLDEBUG); \
  156.     for dict in $(MASTERDICTS); do \
  157.         if [ ! -r $$dict ]; \
  158.         then \
  159.         $(MAKE) DBUILD= 'VARIANTS=$(VARIANTS)' \
  160.           'EXTRADICT=$(EXTRADICT)' \
  161.           SHELLDEBUG=$(SHELLDEBUG) $$dict; \
  162.         else \
  163.         : ; \
  164.         fi; \
  165.     done
  166.     $(MAKE) SHELLDEBUG=$(SHELLDEBUG) $(HASHFILES)
  167.  
  168. install: all $(CONFIG)
  169.     @. $(CONFIG); \
  170.       set -x; \
  171.       [ -d $$LIBDIR ]  ||  (mkdir $$LIBDIR; chmod 755 $$LIBDIR); \
  172.       cd $$LIBDIR; rm -f english.aff $(HASHFILES)
  173.     @. $(CONFIG); \
  174.       set -x; \
  175.       cp english.aff $(HASHFILES) $$LIBDIR
  176.     @. $(CONFIG); \
  177.       set -x; \
  178.       cd $$LIBDIR; \
  179.       chmod 644 english.aff $(HASHFILES)
  180.     @. $(CONFIG); \
  181.       set -x; \
  182.       cd $$MAN4DIR; \
  183.       [ -d $$MAN4DIR ]  ||  (mkdir $$MAN4DIR; chmod 755 $$MAN4DIR); \
  184.         rm -f english$$MAN4EXT
  185.     @. $(CONFIG); \
  186.       set -x; \
  187.       cp english.4l $$MAN4DIR/english$$MAN4EXT; \
  188.       chmod 644 $$MAN4DIR/english$$MAN4EXT
  189.  
  190. #
  191. #    Dependencies to build extra hash files
  192. #
  193. allhashes:    normhashes plushashes
  194. normhashes:    sml.hash med.hash lrg.hash xlg.hash
  195. plushashes:    sml+.hash med+.hash lrg+.hash xlg+.hash
  196.  
  197. #
  198. # Note that we don't use $(MAKE) in the following dependencies.  There
  199. # is a good reason for this -- if we did, "make -n" would still run
  200. # buildhash.
  201. #
  202. sml.hash:    $(CONFIG) $(BUILDHASH)
  203. sml.hash:    $(AFFIXES)
  204. sml.hash:    english.sml
  205.     rm -f sml.hash
  206.     @set +e; \
  207.     . $(CONFIG); \
  208.     set -ex; \
  209.     $(BUILDHASH) english.sml $(AFFIXES) $@
  210.  
  211. sml+.hash:    $(CONFIG) $(BUILDHASH)
  212. sml+.hash:    $(AFFIXES)
  213. sml+.hash:    english.sml+
  214.     rm -f sml+.hash
  215.     @set +e; \
  216.     . $(CONFIG); \
  217.     set -ex; \
  218.     $(BUILDHASH) english.sml+ $(AFFIXES) $@
  219.  
  220. med.hash:    $(BUILDHASH) $(CONFIG)
  221. med.hash:    $(AFFIXES)
  222. med.hash:    english.med
  223.     rm -f med.hash
  224.     @set +e; \
  225.     . $(CONFIG); \
  226.     set -ex; \
  227.     $(BUILDHASH) english.med $(AFFIXES) $@
  228.  
  229. med+.hash:    $(BUILDHASH) $(CONFIG)
  230. med+.hash:    $(AFFIXES)
  231. med+.hash:    english.med+
  232.     rm -f med+.hash
  233.     @set +e; \
  234.     . $(CONFIG); \
  235.     set -ex; \
  236.     $(BUILDHASH) english.med+ $(AFFIXES) $@
  237.  
  238. lrg.hash:    $(BUILDHASH) $(CONFIG)
  239. lrg.hash:    $(AFFIXES)
  240. lrg.hash:    english.lrg
  241.     rm -f lrg.hash
  242.     @set +e; \
  243.     . $(CONFIG); \
  244.     set -ex; \
  245.     $(BUILDHASH) english.lrg $(AFFIXES) $@
  246.  
  247. lrg+.hash:    $(BUILDHASH) $(CONFIG)
  248. lrg+.hash:    $(AFFIXES)
  249. lrg+.hash:    english.lrg+
  250.     rm -f lrg+.hash
  251.     @set +e; \
  252.     . $(CONFIG); \
  253.     set -ex; \
  254.     $(BUILDHASH) english.lrg+ $(AFFIXES) $@
  255.  
  256. xlg.hash:    $(BUILDHASH) $(CONFIG)
  257. xlg.hash:    $(AFFIXES)
  258. xlg.hash:    english.xlg
  259.     rm -f xlg.hash
  260.     @set +e; \
  261.     . $(CONFIG); \
  262.     set -ex; \
  263.     $(BUILDHASH) english.xlg $(AFFIXES) $@
  264.  
  265. xlg+.hash:    $(BUILDHASH) $(CONFIG)
  266. xlg+.hash:    $(AFFIXES)
  267. xlg+.hash:    english.xlg+
  268.     rm -f xlg+.hash
  269.     @set +e; \
  270.     . $(CONFIG); \
  271.     set -ex; \
  272.     $(BUILDHASH) english.xlg+ $(AFFIXES) $@
  273.  
  274. #
  275. #    The eight dictionaries, english.sml through english.xlg+, are
  276. #    built by the following dependencies.  The macros "CBUILD" and
  277. #    "DBUILD" are a sneaky trick used to keep make from trying to
  278. #    run munchlist every time a minor change is made to one of the
  279. #    C programs.  If you define these macros as null, "make all"
  280. #    will automatically build the dictionaries.  If you leave them
  281. #    with their default definitions, "make all" will leave the
  282. #    dictionaries alone, and you will have to type something like
  283. #    "make buildenglish.med+" to build the dictionary using
  284. #    munchlist.
  285. #
  286. #    Why two macros?  So you can delete {eng,amer,altamer,brit}.[012].??
  287. #    to save space, and still type "make DBUILD= all".
  288. #
  289. #    The following dependencies are convenient ways to make some or
  290. #    all of the dictionaries.
  291. #
  292. BUILD    =    build
  293. CBUILD    =    $(BUILD)
  294. DBUILD    =    $(BUILD)
  295.  
  296. alldicts:    normdicts plusdicts
  297. normdicts:    $(DBUILD)english.sml
  298. normdicts:    $(DBUILD)english.med
  299. normdicts:    $(DBUILD)english.lrg
  300. normdicts:    $(DBUILD)english.xlg
  301. plusdicts:    $(DBUILD)english.sml+
  302. plusdicts:    $(DBUILD)english.med+
  303. plusdicts:    $(DBUILD)english.lrg+
  304. plusdicts:    $(DBUILD)english.xlg+
  305.  
  306. dictcomponents:    $(CBUILD)english.0
  307. dictcomponents:    $(CBUILD)english.1
  308. dictcomponents:    $(CBUILD)english.2
  309. dictcomponents:    $(CBUILD)english.3
  310. dictcomponents: $(CBUILD)american.0
  311. dictcomponents: $(CBUILD)american.1
  312. dictcomponents:    $(CBUILD)american.2
  313. dictcomponents: $(CBUILD)altamer.0
  314. dictcomponents:    $(CBUILD)altamer.1
  315. dictcomponents:    $(CBUILD)altamer.2
  316. dictcomponents: $(CBUILD)british.0
  317. dictcomponents:    $(CBUILD)british.1
  318. dictcomponents:    $(CBUILD)british.2
  319.  
  320. $(CBUILD)english.0:    $(UNSQ) eng.0.??
  321.     cat eng.0.?? | $(UNSQ) > english.0
  322.  
  323. $(CBUILD)english.1:    $(UNSQ) eng.1.??
  324.     cat eng.1.?? | $(UNSQ) > english.1
  325.  
  326. $(CBUILD)english.2:    $(UNSQ) eng.2.??
  327.     cat eng.2.?? | $(UNSQ) > english.2
  328.  
  329. $(CBUILD)english.3:    $(UNSQ) eng.3.??
  330.     cat eng.3.?? | $(UNSQ) > english.3
  331.  
  332. $(CBUILD)american.0:    $(UNSQ) amer.0.??
  333.     cat amer.0.?? | $(UNSQ) > american.0
  334.  
  335. $(CBUILD)american.1:    $(UNSQ) amer.1.??
  336.     cat amer.1.?? | $(UNSQ) > american.1
  337.  
  338. $(CBUILD)american.2:    $(UNSQ) amer.2.??
  339.     cat amer.2.?? | $(UNSQ) > american.2
  340.  
  341. $(CBUILD)altamer.0:    $(UNSQ) altamer.0.??
  342.     cat altamer.0.?? | $(UNSQ) \
  343.       > altamer.0
  344.  
  345. $(CBUILD)altamer.1:    $(UNSQ) altamer.1.??
  346.     cat altamer.1.?? | $(UNSQ) \
  347.       > altamer.1
  348.  
  349. $(CBUILD)altamer.2:    $(UNSQ) altamer.2.??
  350.     cat altamer.2.?? | $(UNSQ) \
  351.       > altamer.2
  352.  
  353. $(CBUILD)british.0:    $(UNSQ) brit.0.??
  354.     cat brit.0.?? | $(UNSQ) > british.0
  355.  
  356. $(CBUILD)british.1:    $(UNSQ) brit.1.??
  357.     cat brit.1.?? | $(UNSQ) > british.1
  358.  
  359. $(CBUILD)british.2:    $(UNSQ) brit.2.??
  360.     cat brit.2.?? | $(UNSQ) > british.2
  361.  
  362. $(DBUILD)english.sml:    $(CONFIG)
  363. $(DBUILD)english.sml:    english.0
  364. $(DBUILD)english.sml:    american.0
  365. $(DBUILD)english.sml:    altamer.0
  366. $(DBUILD)english.sml:    british.0
  367.     @. $(CONFIG); \
  368.         set $(SHELLDEBUG); \
  369.         dicts=""; \
  370.         for i in english $(VARIANTS); do \
  371.         dicts="$$dicts $$i.0"; \
  372.         done; \
  373.         trap "rm -f english.sml" 1 2 15; \
  374.         set -x; \
  375.         eval sort -u -t/ +0f -1 +0 $$MAKE_SORTTMP -o english.sml $$dicts
  376.  
  377. $(DBUILD)english.sml+:    $(CONFIG) $(EXTRADICT)
  378. $(DBUILD)english.sml+:    english.0
  379. $(DBUILD)english.sml+:    american.0
  380. $(DBUILD)english.sml+:    altamer.0
  381. $(DBUILD)english.sml+:    british.0
  382.     @dicts="$(EXTRADICT)"; \
  383.     set $(SHELLDEBUG); \
  384.     for i in english $(VARIANTS); do \
  385.         dicts="$$dicts $$i.0"; \
  386.     done; \
  387.     trap "rm -f english.sml+" 1 2 15; \
  388.     set -x; \
  389.     PATH=$(PATHADDER):$$PATH; \
  390.     export PATH; \
  391.     munchlist -v -l $(AFFIXES) $$dicts \
  392.       > english.sml+ \
  393.         ||  rm -f english.sml+
  394.  
  395. $(DBUILD)english.med:    $(CONFIG)
  396. $(DBUILD)english.med:    english.0
  397. $(DBUILD)english.med:    american.0
  398. $(DBUILD)english.med:    altamer.0
  399. $(DBUILD)english.med:    british.0
  400. $(DBUILD)english.med:    english.1
  401. $(DBUILD)english.med:    american.1
  402. $(DBUILD)english.med:    altamer.1
  403. $(DBUILD)english.med:    british.1
  404.     @. $(CONFIG); \
  405.         set $(SHELLDEBUG); \
  406.         dicts=""; \
  407.         for i in english $(VARIANTS); do \
  408.         dicts="$$dicts $$i.[01]"; \
  409.         done; \
  410.         trap "rm -f english.med" 1 2 15; \
  411.         set -x; \
  412.         eval sort -u -t/ +0f -1 +0 $$MAKE_SORTTMP -o english.med $$dicts
  413.  
  414. $(DBUILD)english.med+:    $(CONFIG) $(EXTRADICT)
  415. $(DBUILD)english.med+:    english.0
  416. $(DBUILD)english.med+:    american.0
  417. $(DBUILD)english.med+:    altamer.0
  418. $(DBUILD)english.med+:    british.0
  419. $(DBUILD)english.med+:    english.1
  420. $(DBUILD)english.med+:    american.1
  421. $(DBUILD)english.med+:    altamer.1
  422. $(DBUILD)english.med+:    british.1
  423.     @dicts="$(EXTRADICT)"; \
  424.     set $(SHELLDEBUG); \
  425.     for i in english $(VARIANTS); do \
  426.         dicts="$$dicts $$i.[01]"; \
  427.     done; \
  428.     trap "rm -f english.med+" 1 2 15; \
  429.     set -x; \
  430.     PATH=$(PATHADDER):$$PATH; \
  431.     export PATH; \
  432.     munchlist -v -l $(AFFIXES) $$dicts \
  433.       > english.med+ \
  434.         ||  rm -f english.med+
  435.  
  436. $(DBUILD)english.lrg:    $(CONFIG)
  437. $(DBUILD)english.lrg:    english.0
  438. $(DBUILD)english.lrg:    american.0
  439. $(DBUILD)english.lrg:    altamer.0
  440. $(DBUILD)english.lrg:    british.0
  441. $(DBUILD)english.lrg:    english.1
  442. $(DBUILD)english.lrg:    american.1
  443. $(DBUILD)english.lrg:    altamer.1
  444. $(DBUILD)english.lrg:    british.1
  445. $(DBUILD)english.lrg:    english.2
  446. $(DBUILD)english.lrg:    american.2
  447. $(DBUILD)english.lrg:    altamer.2
  448. $(DBUILD)english.lrg:    british.2
  449.     @. $(CONFIG); \
  450.         set $(SHELLDEBUG); \
  451.         dicts=""; \
  452.         for i in english $(VARIANTS); do \
  453.         dicts="$$dicts $$i.[012]"; \
  454.         done; \
  455.         trap "rm -f english.lrg" 1 2 15; \
  456.         set -x; \
  457.         eval sort -u -t/ +0f -1 +0 $$MAKE_SORTTMP -o english.lrg $$dicts
  458.  
  459. $(DBUILD)english.lrg+:    $(CONFIG) $(EXTRADICT)
  460. $(DBUILD)english.lrg+:    english.0
  461. $(DBUILD)english.lrg+:    american.0
  462. $(DBUILD)english.lrg+:    altamer.0
  463. $(DBUILD)english.lrg+:    british.0
  464. $(DBUILD)english.lrg+:    english.1
  465. $(DBUILD)english.lrg+:    american.1
  466. $(DBUILD)english.lrg+:    altamer.1
  467. $(DBUILD)english.lrg+:    british.1
  468. $(DBUILD)english.lrg+:    english.2
  469. $(DBUILD)english.lrg+:    american.2
  470. $(DBUILD)english.lrg+:    altamer.2
  471. $(DBUILD)english.lrg+:    british.2
  472.     @dicts="$(EXTRADICT)"; \
  473.     set $(SHELLDEBUG); \
  474.     for i in english $(VARIANTS); do \
  475.         dicts="$$dicts $$i.[012]"; \
  476.     done; \
  477.     trap "rm -f english.lrg+" 1 2 15; \
  478.     set -x; \
  479.     PATH=$(PATHADDER):$$PATH; \
  480.     export PATH; \
  481.     munchlist -v -l $(AFFIXES) $$dicts \
  482.       > english.lrg+ \
  483.         ||  rm -f english.lrg+
  484.  
  485. $(DBUILD)english.xlg:    $(CONFIG)
  486. $(DBUILD)english.xlg:    english.0
  487. $(DBUILD)english.xlg:    american.0
  488. $(DBUILD)english.xlg:    altamer.0
  489. $(DBUILD)english.xlg:    british.0
  490. $(DBUILD)english.xlg:    english.1
  491. $(DBUILD)english.xlg:    american.1
  492. $(DBUILD)english.xlg:    altamer.1
  493. $(DBUILD)english.xlg:    british.1
  494. $(DBUILD)english.xlg:    english.2
  495. $(DBUILD)english.xlg:    american.2
  496. $(DBUILD)english.xlg:    altamer.2
  497. $(DBUILD)english.xlg:    british.2
  498. $(DBUILD)english.xlg:    english.3
  499.     @. $(CONFIG); \
  500.         set $(SHELLDEBUG); \
  501.         dicts=""; \
  502.         for i in english $(VARIANTS); do \
  503.         dicts="$$dicts $$i.[0123]"; \
  504.         done; \
  505.         trap "rm -f english.xlg" 1 2 15; \
  506.         set -x; \
  507.         eval sort -u -t/ +0f -1 +0 $$MAKE_SORTTMP -o english.xlg $$dicts
  508.  
  509. $(DBUILD)english.xlg+:    $(CONFIG) $(EXTRADICT)
  510. $(DBUILD)english.xlg+:    english.0
  511. $(DBUILD)english.xlg+:    american.0
  512. $(DBUILD)english.xlg+:    altamer.0
  513. $(DBUILD)english.xlg+:    british.0
  514. $(DBUILD)english.xlg+:    english.1
  515. $(DBUILD)english.xlg+:    american.1
  516. $(DBUILD)english.xlg+:    altamer.1
  517. $(DBUILD)english.xlg+:    british.1
  518. $(DBUILD)english.xlg+:    english.2
  519. $(DBUILD)english.xlg+:    american.2
  520. $(DBUILD)english.xlg+:    altamer.2
  521. $(DBUILD)english.xlg+:    british.2
  522. $(DBUILD)english.xlg+:    english.3
  523.     @dicts="$(EXTRADICT)"; \
  524.     set $(SHELLDEBUG); \
  525.     for i in english $(VARIANTS); do \
  526.         dicts="$$dicts $$i.[0123]"; \
  527.     done; \
  528.     trap "rm -f english.xlg+" 1 2 15; \
  529.     set -x; \
  530.     PATH=$(PATHADDER):$$PATH; \
  531.     export PATH; \
  532.     munchlist -v -l $(AFFIXES) $$dicts \
  533.       > english.xlg+ \
  534.         ||  rm -f english.xlg+
  535.  
  536. #
  537. #    The following dependency can be executed when ispell is unpacked,
  538. #    to unpack the dictionaries.
  539. #
  540. unpack:    $(UNSQ)
  541.     $(MAKE) CBUILD= SHELLDEBUG=$(SHELLDEBUG) dictcomponents
  542.     $(MAKE) SHELLDEBUG=$(SHELLDEBUG) kitclean
  543.  
  544. $(UNSQ):
  545.     set +e; \
  546.     set $(SHELLDEBUG); \
  547.     if [ ! -x $(UNSQ) ]; \
  548.     then \
  549.         set -e; \
  550.         cd ../..; \
  551.         $(MAKE) unsq; \
  552.     else \
  553.         : ; \
  554.     fi
  555.  
  556. clean:
  557.     rm -f core *.hash *.stat *.cnt
  558.  
  559. #
  560. #    The following target allows you to clean out the leftover raw
  561. #    files gotten from unpacking the kit.  It makes sure that you
  562. #    have the combined files first, so it may take a little while
  563. #    to run.
  564. #
  565. kitclean:    $(UNSQ)
  566.     $(MAKE) CBUILD= SHELLDEBUG=$(SHELLDEBUG) dictcomponents
  567.     rm -f eng.[0123].?? amer.[012].?? altamer.[012].?? brit.[012].??
  568.  
  569. #
  570. #    The following target allows you to clean out the combined
  571. #    dictionary files.
  572. #
  573. dictclean:
  574.     rm -f english.sml english.sml+ english.med english.med+
  575.     rm -f english.lrg english.lrg+ english.xlg english.xlg+
  576.